package com.bestcem.xm.txtanls.entity.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.txtanls.enums.IndustryCodeEnum;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

@Data
@TableName("ds_txtanls_train_model")
public class TrainModelDo {

    /**
     * id，objectId
     */
    private String trainModelId;

    /**
     * 模型名称,(限制30个字符)
     */
    private String name;

    /**
     * 模型类型
     */
//    @Field(value = ColumnConstant.TrainModel.TYPE, targetType = FieldType.INT32)
//    private Integer type;

    /**
     * 模型code,为了在迁移前不加表 所添加的临时字段,等同于行业code
     *
     * @see IndustryCodeEnum#getIndex()
     */
    private Integer code;


    /**
     * 对应模型的行业信息，aka industry, currently support: "CANYIN", "LINGSHOU"
     * @see IndustryCodeEnum#getSpell()
     */
    private String business;



    /**
     * 建用户id
     */
    @TableField(value = "creator_id", jdbcType = JdbcType.BINARY)
    private String creatorId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 新用户id
     */
    @TableField(value = "operator_id", jdbcType = JdbcType.BINARY)
    private String operatorId;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;
}
